package com.aliwo.design.patterns.status.ext3;

/**
 * @author xuyayuan
 * @description TODO
 * @date 2021/9/18 16:23
 */
public class Person {
    private int hour;
    private Status status;

    public Person() {
        status = new MStatus();
    }

    public void doSomeThing() {
        status.doSomething(this);
        //复位，都所以方法以后再执行。
        status = new MStatus();
    }

    public int getHour() {
        return hour;
    }

    public void setHour(int hour) {
        this.hour = hour;
    }

    public Status getStatus() {
        return status;
    }

    public void setStatus(Status status) {
        this.status = status;
    }
}
